paned: Initialize max_position
authorMatthias Clasen <mclasen@redhat.com>
Sun, 24 Jan 2016 05:22:31 +0000 (00:22 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 24 Jan 2016 05:22:31 +0000 (00:22 -0500)
As pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=608865
max_position should be set to G_MAXINT.

gtk/gtkpaned.c

index 8ea97df005c795c1a3e6079ba807bc5a8b184eec..e141eeee065ff9925187c197a6387cd0f8cdb68a 100644 (file)
@@ -1921,6 +1921,7 @@ gtk_paned_init (GtkPaned *paned)
   priv->in_recursion = FALSE;
   priv->handle_prelit = FALSE;
   priv->original_position = -1;
+  priv->max_position = G_MAXINT;
 
   priv->handle_pos.x = -1;
   priv->handle_pos.y = -1;